package com.qfjy.service.impl.example3;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class WeatherServiceImpl {

    /**
     * #TODO 京东
     * @param msg
     */
    @RabbitListener(queues = {"jdQueue"})
    public void  jdInfo(String msg){
        log.info("京东平台收到最新的天气情况：{}",msg);
    }



    /**
     * #TODO 淘宝
     * @param msg
     */
    @RabbitListener(queues = {"taobaoQueue"})
    public void  taobaoInfo(String msg){
        log.info("淘宝平台收到最新的天气情况：{}",msg);
    }


}
